package org.ch00.test02;

/**
 * @author ZQX
 * @date 2025-02-28
 */
public class MainTest {
    public static void main(String[] args) {
        // 第二：实例化对象
        Phone phone = new Phone();

        // 第三：初始化对象
        phone.setBrand("华为");
        phone.setName("META70");
        phone.setPrice(7000);
        // String[] userList = {"zs","ls","ww"} ;
        // phone.setUserList(userList);
        phone.setUserList(new String[]{"zs","ls","ww"});

        // 第四：调用方法，实现相关的业务
        phone.sendMessage("zl","你好啊，今天有空没？");
    }
}
